<!--
 * @Author: 卡卡 1071780426@qq.com
 * @Date: 2023-09-14 12:31:39
 * @LastEditors: 卡卡 1071780426@qq.com
 * @LastEditTime: 2023-11-28 17:06:50
 * @FilePath: \mould\src\components\BehaViorManage\workYear\index.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <div class="Control-1 mechanism_dialogS closure department" id="comcn">
    <el-dialog :title="title" v-dialogDrag :visible.sync="visible" @close="closeDialog" :append-to-body="true" top="5%">
      <div class="dialogBody common" :style="{ height: dialogHeight }" style="width: 100%">
        <publicForm :startDates="startDates" v-if="btnStatus[0]" :timestamp="formData.fAnnex" style="height: 250px"
          ref="publicForm" lableWidth="95px" :formObj="formObj" :formData="formData" :fileList="formDatafileList"
          @delteFile="delteFile($event, 0)" @selectChange="selectChange">
        </publicForm>
        <div class="baseTitle">考核评分详细内容</div>
        
        <div style="margin-top: 3px">
          <div class="customTableTotal">
            <el-table :data="tableData" style="width: 100%">
              <el-table-column prop="fExamineitems" label="当期考核项目" align="center">
                <template slot-scope="scope">
                  <div class="selectobject">
                    <el-input :disabled="isDisabled" v-model="scope.row.fExamineitems" type="text"></el-input>
                  </div>
                </template>
              </el-table-column>
              <el-table-column prop="fScore" label="扣分" align="center">
                <template slot-scope="scope">
                  <div class="inputminute">
                    <el-input :disabled="isDisabled" onkeyup="value=(value.replace(/\D/g,'')==''?'':parseInt(value))"
                      v-model="scope.row.fScore" type="number" min="0" max="80"></el-input>
                  </div>
                </template>
              </el-table-column>
              <el-table-column prop="fExaminemessage" label="考核说明" align="center">
                <template slot-scope="scope">
                  <div class="inputminute">
                    <el-input :disabled="isDisabled" v-model="scope.row.fExaminemessage"></el-input>
                  </div>
                </template>
              </el-table-column>

              <el-table-column align="right">
                <template slot="header">
                  <div class="customTable">
                    <el-button type="primary" icon="el-icon-circle-plus-outline" @click="addUnqualifiedInfo"
                      :disabled="statusNum == 7 ? true : false"></el-button>
                  </div>
                </template>
                <template slot-scope="scope">
                  <div class="customTable" style="padding-right: 37px">
                    <el-button :disabled="statusNum == 7 ? true : false" type="danger" icon="el-icon-delete" @click="
                      deleteUnqualifiedInfo(scope.$index, scope.row)
                      " circle></el-button>
                  </div>
                </template>
              </el-table-column>
            </el-table>
          </div>
        </div>

      </div>
      <div class="newlyAdded_btn" v-if="btnShow">
        <el-button type="primary" @click="yj_saveForm('formData')" :disabled="isLock">保存</el-button>
        <el-button type="warning" @click="visible = false">关闭</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script src="./index.js">

</script>
<style lang="less" scoped>
@import './index.less';
</style>
